package com.jinlingxiu.app.di

import com.jinlingxiu.app.mvp.contract.PermissionContract
import com.jinlingxiu.app.mvp.model.PermissionModel
import com.jinlingxiu.app.mvp.presenter.PermissionPresenter
import com.jinlingxiu.app.mvp.ui.activity.PermissionActivity
import org.koin.dsl.module

val PermissionModule = module {
    scope<PermissionActivity> {
        scoped<PermissionContract.Model> { PermissionModel(get()) }
        scoped {
            PermissionPresenter(get(), this.getSource())
        }
    }
}
